package com.housekeeping.service;

import com.housekeeping.model.User;

import java.util.List;

/**
 * 用户服务接口
 */
public interface UserService {
    
    User login(String username, String password);
    
    boolean register(User user);
    
    boolean isUsernameExists(String username);
    
    User getUserById(Integer userId);
    
    List<User> getAllUsers();
    
    List<User> getUsersByType(Integer userType);
    
    List<User> getCustomers();
    
    List<User> getStaff();
    
    boolean updateUser(User user);
    
    boolean deleteUser(Integer userId);
    
    boolean updateUserStatus(Integer userId, Integer status);
    
    long getUserCount();
} 